package com.tuweiya.study.springmvc001.test.impl;

import com.tuweiya.study.springmvc001.test.DefaultMethodInterface;
import com.tuweiya.study.springmvc001.test.SubDefaultMethod;

/**
 * @Author: Mr_tu
 * @Date: Create in 10:27 2018/6/6 0006
 * @Description:
 */
public class SubDefaultMethodImpl implements DefaultMethodInterface,SubDefaultMethod {
    @Override
    public int sub(int a, int b) {
        return 0;
    }

    @Override
    public void defaultMethod() {
        // 去指定继承那个方法
        SubDefaultMethod.super.defaultMethod();
    }
}
